package com.my.behavior.controller;

import com.my.behavior.service.ApArticleService;
import com.my.model.common.dtos.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/api/v1")
public class UserBehaviorController {
    @Autowired
    private ApArticleService apArticleService;

    @PostMapping("/read_behavior")
    public ResponseResult readBehavior(@RequestBody Map map) {
        return apArticleService.readBehavior(map);
    }
}
